package com.grad.why.studentsystem.domain;

import java.util.Objects;

public class CourseArrange implements java.io.Serializable{
    private Integer coursearrangeid;

    private Integer classroomid;

    private String courseindex;

    private Integer startweek;

    private Integer endweek;

    private Integer cid;

    private String weekday;

    public Integer getCoursearrangeid() {
        return coursearrangeid;
    }

    public void setCoursearrangeid(Integer coursearrangeid) {
        this.coursearrangeid = coursearrangeid;
    }

    public Integer getClassroomid() {
        return classroomid;
    }

    public void setClassroomid(Integer classroomid) {
        this.classroomid = classroomid;
    }

    public String getCourseindex() {
        return courseindex;
    }

    public void setCourseindex(String courseindex) {
        this.courseindex = courseindex == null ? null : courseindex.trim();
    }

    public Integer getStartweek() {
        return startweek;
    }

    public void setStartweek(Integer startweek) {
        this.startweek = startweek;
    }

    public Integer getEndweek() {
        return endweek;
    }

    public void setEndweek(Integer endweek) {
        this.endweek = endweek;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getWeekday() {
        return weekday;
    }

    public void setWeekday(String weekday) {
        this.weekday = weekday == null ? null : weekday.trim();
    }

    @Override
    public String toString() {
        return "CourseArrange{" +
                "coursearrangeid=" + coursearrangeid +
                ", classroomid=" + classroomid +
                ", courseindex='" + courseindex + '\'' +
                ", startweek=" + startweek +
                ", endweek=" + endweek +
                ", cid=" + cid +
                ", weekday='" + weekday + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof CourseArrange)) return false;
        CourseArrange that = (CourseArrange) o;
        return Objects.equals(classroomid, that.classroomid) &&
                Objects.equals(courseindex, that.courseindex) &&
                Objects.equals(startweek, that.startweek) &&
                Objects.equals(endweek, that.endweek) &&
                Objects.equals(cid, that.cid) &&
                Objects.equals(weekday, that.weekday);
    }

    @Override
    public int hashCode() {

        return Objects.hash(courseindex, startweek, endweek, cid, weekday);
    }
}